﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Police/Police.master" AutoEventWireup="true"
    CodeFile="LeaveView.aspx.cs" Inherits="LeaveView" StylesheetTheme="Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" Width="100%" OnRowDataBound="gvSoldiers_RowDataBound"
        Caption="<span>外出人员查看[<a href='#' onclick='history.back(0);'>返回</a>]</span>">
        <Columns>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="单位" ItemStyle-Width="100">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblDeparment"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="姓名" DataField="Name" />
            <asp:BoundField HeaderText="职务" DataField="Duty" />
            <asp:BoundField HeaderText="事由" DataField="Reason" />
            <asp:BoundField HeaderText="时间天数" DataField="DayCount" />
            <asp:BoundField HeaderText="准假人" DataField="Approver" />
            <asp:BoundField HeaderText="超误假时（天数）" DataField="OverTime" />
            <asp:BoundField HeaderText="外出证号" DataField="LeaveCardID" />
            <asp:TemplateField HeaderText="时间">
                <ItemTemplate>
                    <%# Convert.ToDateTime(Eval("StartDate")).ToString("yyyy-MM-dd HH:mm") + "--<br/>" + Convert.ToDateTime(Eval("EndDate")).ToString("yyyy-MM-dd HH:mm") %>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
